﻿using SqlSugar;

namespace B.S.Warehouse.Domain.goods
{
    public class GoodsModel
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int GoodsModelId { get; set; }
        /// <summary>
        /// 产品名称，前端必填
        /// </summary>
        public string productName { get; set; }
        /// <summary>
        /// 产品编号，保存后自动生成，可在后端生成逻辑
        /// </summary>
        public string productId { get; set; }
        /// <summary>
        /// 所属类别，前端必填
        /// </summary>
        public string category { get; set; }
        /// <summary>
        /// 单位，前端必填
        /// </summary>
        public string unit { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string specificationModel { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public Double unitPrice { get; set; }
        /// <summary>
        /// 产品说明
        /// </summary>
        public string productDescription { get; set; }
        /// <summary>
        /// 是否为实体，默认是
        /// </summary>
        public bool isEntity { get; set; }
        /// <summary>
        /// 是否含税，默认是
        /// </summary>
        public bool isTaxIncluded { get; set; }
        /// <summary>
        /// 产品属性 - 自制
        /// </summary>
        public int isSelfMade { get; set; }

        /// <summary>
        /// 主供应商
        /// </summary>
        public string mainSupplier { get; set; }
        /// <summary>
        /// 安全库存
        /// </summary>
        public int safetyStock { get; set; }
        /// <summary>
        /// 库存下限
        /// </summary>
        public int inventoryLowerLimit { get; set; }
        /// <summary>
        /// 库存上限
        /// </summary>
        public int inventoryUpperLimit { get; set; }
        /// <summary>
        /// 耗损率（%）
        /// </summary>
        public decimal lossRate { get; set; }
        /// <summary>
        /// 产品有效期（天）
        /// </summary>
        public int productValidityDays { get; set; }
        /// <summary>
        /// 养护周期
        /// </summary>
        public string maintenanceCycle { get; set; }
        /// <summary>
        /// 条形码图片，保存后自动生成，可在后端生成逻辑
        /// </summary>
        public string barcodeImage { get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>
        public bool IsDel { get; set; }
    }
}
